﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using CuteAnt;
using CuteAnt.Xml;
using CuteAnt.Security.Cryptography.X509Certificates;

namespace SelfCert
{
	/// <summary>ORM配置</summary>
	[Description("ORM配置")]
	[XmlConfigFile(@"CertGen.config")]
	public class CertGenConfig : XmlConfig<CertGenConfig>
	{
		private String _DistinguishedName = "CN=MyName";

		public String DistinguishedName
		{
			get { return _DistinguishedName; }
			set { _DistinguishedName = value; }
		}

		private Int32 _KeySize = 4096;

		public Int32 KeySize
		{
			get { return _KeySize; }
			set { _KeySize = value; }
		}

		private X509CertificateSignatureAlgorithm _SignatureAlgorithm = X509CertificateSignatureAlgorithm.RsaSha1;

		public X509CertificateSignatureAlgorithm SignatureAlgorithm
		{
			get { return _SignatureAlgorithm; }
			set { _SignatureAlgorithm = value; }
		}
	}
}
